<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml">   
<head>   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   
<title>跳转提示</title>   
  
<style type="text/css">   
body { font: 75% Arail; text-align: center; }   
#notice { width: 300px; background: #FFF; border: 1px solid #BBB; background: #EEE; padding: 3px;   
position: absolute; left: 50%; top: 50%; margin-left: -155px; margin-top: -100px; }   
#notice div { background: #FFF; padding: 30px 0 20px; font-size: 1.2em; font-weight:bold }   
#notice p { background: #FFF; margin: 0; padding: 0 0 20px; }   
a { color: #f00} a:hover { text-decoration: none; }   
</style>   
</head>   
<body>   
<div id="notice">   
  
<?php switch($code) {?>
	<?php case 1:?>
		<p style="font: italic bold 2cm cursive,serif; color:green">ok    </p>
		<div class="success" style="width:100%;text-align:center;">
			<?php echo(strip_tags($msg));?>
		</div>   
	<?php break;?>
	<?php case 0:?>
		<p style="font: italic bold 2cm cursive,serif; color:red">×</p>   
		<div class="error" style="width:100%;text-align:center;"> 
			<?php echo(strip_tags($msg));?>
		</div>    
	<?php break; ?>
<?php } ?>
<p>   
在( <span id="sec" style="color:blue;font-weight:bold"><?php echo($wait); ?></span> )秒后自动跳转，或直接点击 <a href="<?php echo($url); ?>">这里</a> 跳转<br>   
<span style="display:block;text-decoration:underline;cursor:pointer;line-height:25px" onclick="stop(this)">停止</span>   
</p>   
</div>   
<script>   
var seco=document.getElementById("sec");   
var time=<?php echo($wait); ?>;   
var tt=setInterval(function(){   
time--;   
seco.innerHTML=time;   
if(time<=0){   
window.location='<?php echo($url); ?>'  
return;   
}   
}, 1000);   
function stop(obj){   
clearInterval(tt);   
obj.style.display="none";   
}   
</script>   
</body>   
</html>